/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control;

import GUI.PrincipalWindow;
import modelo.ImagenObservable;
import modelo.ListaDeImagenes;

/**
 *
 * @author imp14T
 */
public class Control {
    private PrincipalWindow window;
    private ListaDeImagenes imagenes;
    private ImagenObservable observable;

    public Control(){

        //JFrame.setDefaultLookAndFeelDecorated(true);
        observable=new ImagenObservable();
        this.imagenes= new ListaDeImagenes(observable);
        observable.addObserver(imagenes);
        
        window= new PrincipalWindow(observable);
        //SwingUtilities.invokeLater(window);
        window.setVisible(true);
    }
}
